﻿<%@ Page Title=""Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Inherits="Nivdal.Player" StylesheetTheme="SkinFile" Codebehind="Player.aspx.cs" %>

<%@ Register Assembly="obout_Flyout2_NET" Namespace="OboutInc.Flyout2" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>    
<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, Player_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
    <style type="text/css">
        #listofTransfers
        {
            display:none;    
        }
    </style>
    <script type="text/javascript">
        function ShowTransfers() {
            if ($('#listofTransfers').css('display') == 'none') {
                $('#listofTransfers').fadeIn(200);
            } else {
                $('#listofTransfers').fadeOut(200);
            }
        }

        function ShowShirtDiv()
        {
            $(document.getElementById('ShirtNumLink')).hide();
            $(document.getElementById('ShirtNum')).show(500);            
        }
        function HideShirtNumDiv()
        {
            $(document.getElementById('ShirtNum')).hide();
            $(document.getElementById('ShirtNumLink')).show(50);
        }
        function ShowNTShirtDiv() {
            $(document.getElementById('NTShirtNumLink')).hide();
            $(document.getElementById('NTShirtNum')).show(500);
        }
        function HideNTShirtNumDiv() {
            $(document.getElementById('NTShirtNum')).hide();
            $(document.getElementById('NTShirtNumLink')).show(50);
        }
        function EditPrivateNote()
        {
            $(document.getElementById('showprivatenote')).hide();
            $(document.getElementById('editprivatenote')).show(200);
        }

        function EditPublicNote() {
            $(document.getElementById('publicNoteDiv')).hide();
            $(document.getElementById('EditPublicNotediv')).hide();
            $(document.getElementById('EditPublicNoteAction')).show(200);
        }

        function EditNTPrivateNote() {
            $(document.getElementById('NTPrivateNoteShow')).hide();
            $(document.getElementById('NTPrivateNoteEdit')).show(200);
        }

        function CheckAllTrainingHistoryCheckboxes(checked) { 
            var ToCheck;
            if (checked == "true") {
                ToCheck = true;
            }
            else {
                ToCheck = false;
            }

            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_InstinctsCheckbox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_GoalkeepingCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_PositioningCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_StaminaCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_PowerCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_TacklingCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_HeadingCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_QuicknessCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_TechniqueCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_ShortPassingCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_LongPassingCheckBox").checked = ToCheck;
            document.getElementById("ctl00_ctl00_ContentPlaceHolder3_ContentPlaceHolder1_ShootingCheckBox").checked = ToCheck;

        }
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
    <asp:HiddenField ID="PlayerIdHiddenField" runat="server" />
    <asp:HiddenField ID="TeamIdHiddenField" runat="server" />
    <asp:HiddenField ID="IsPremiumHiddenField" runat="server" />
    <asp:Panel ID="ErrorLabelPanel" Visible="false" runat="server">
    <div class="basic_element">
        <asp:Label ID="ErrorLabel" runat="server" Text="" SkinID="GreenSmallHeaderLabel"></asp:Label>
    </div>
    </asp:Panel>
    
    <asp:FormView ID="FormView1" runat="server" DataSourceID="PlayerDetailsSqlDataSource" Width="100%">
        <ItemTemplate>
            <div class="basic_element">
            <div class="red_title_no_padding">
            <div class="grey_title_inside_red floater">
	            <asp:Label ID="PlayerNameLabel" runat="server" Text='<%# Eval("Name").ToString() %>' CssClass="team_name_white" />
                &nbsp;
                <asp:Label ID="PlayerIdTitleLabel" runat="server" Text='<%# Resources.Resource.Global_PlayerId + ":"%>' CssClass="team_id_white"></asp:Label>
                &nbsp;
                <asp:Label ID="PlayerIdLabel" runat="server" Text='<%# Eval("PlayerId") %>'  CssClass="team_id_white" />
            </div>
            <div class="grey_title_triangle floater"></div>
                <asp:Hyperlink ID="CountryFlagLink" runat="server" ImageUrl='<%# Eval("Flag", "~/Images/Flags/{0}") %>' CssClass="rounded_corners" 
                        ToolTip='<%# Eval("CountryName") %>' Navigate='<%# "~/Country.aspx?Id=" + Eval("CountryId")  %>'></asp:Hyperlink>
                <asp:ImageButton ID="BookmarkButton" runat="server" OnClick="BookmarkButton_Click" ImageUrl="~/Images/bookmarks.png" 
                 ToolTip="<%$ Resources:Resource, Player_BookmarkToolTip %>" CssClass="AllignBottomStyle" Visible='<%# IsPremium() %>' />
                <asp:Label ID="AgeLabel" runat="server" Text='<%# Eval("Age") %>' CssClass="white_title"></asp:Label>
                <asp:Image ID="FirstYellowImage" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg" ToolTip="<%$ Resources:Resource, Player_PlayerIdTitleToolTip %>"
                    Visible='<%# ((bool)Eval("Yellow1Visible"))&&(!(bool)Eval("IsPlayingMatch"))%>' />
                <asp:Image ID="SecondYellowImage" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg" ToolTip="<%$ Resources:Resource, Player_SecondYellowCardToolTip %>"
                    Visible='<%# ((bool)Eval("Yellow2Visible"))&&(!(bool)Eval("IsPlayingMatch")) %>' />
                <asp:Image ID="RedImage" runat="server" ImageUrl="~/Images/Icons/players_red.jpg" ToolTip="<%$ Resources:Resource, Player_RedCardMissesNextMatchToolTip %>"
                    Visible='<%# ((bool)Eval("RedVisible"))&&(!(bool)Eval("IsPlayingMatch")) %>' />
                <asp:Image ID="RedInjuryImage" runat="server" ImageUrl='<%# InjuryIconName(Eval("InjuryRowData")) %>' 
                Visible='<%# ((bool)Eval("RedInjuryVisble"))&&(!(bool)Eval("IsPlayingMatch")) %>' ToolTip='<%# Eval("Injury") %>'/>
                <asp:Image ID="Image1" runat="server" ImageUrl='<%# InjuryIconName(Eval("InjuryRowData")) %>'
                Visible='<%# ((bool)Eval("GreenInjuryVisible"))&&(!(bool)Eval("IsPlayingMatch")) %>' ToolTip='<%# Eval("Injury") %>'/>
                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Statement") %>' Visible='<%# Eval("IsForSale") %>' CssClass="white_title"></asp:Label>
                <asp:Label ID="FitnessTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Fitness + ":"%>' CssClass="white_title"></asp:Label>
                <asp:Label ID="FitnessLabel" runat="server" Text='<%# Eval("Fitness") + "%" %>'  CssClass="white_title" ToolTip="<%$ Resources:Resource, Global_Fitness %>"
                    Visible='<%# !(bool)Eval("IsPlayingMatch") %>' />
            </div>
            <div class="padding5">
                <div id="publicNoteDiv">
                    <i>
                        <asp:Label ID="PublicNotelabel" runat="server" SkinID="GridLabel" Text='<%# Eval("PublicNote").ToString().Replace("\r\n", " <br /> ") %>'></asp:Label>
                    </i>
                </div>
                <asp:Panel ID="PublicNoteEditPanel" runat="server" Visible="false">
                    <div id="EditPublicNotediv">
                        <asp:LinkButton ID="EditPublicNote" runat="server" SkinID="GreenTitleLink"
                            Text="<%$ Resources:Resource, Player_EditPublicNoteText %>" OnClientClick="javascript:EditPublicNote(); return false;"></asp:LinkButton>
                    </div>
                    <div id="EditPublicNoteAction" style="display:none;">
                                
                        <CustomControls:TextArea ID="PublicNoteTextBox" runat="server" MaxLength="255" TextMode="MultiLine"
                            Text='<%# Eval("PublicNote") %>' Height="80" Width="300"></CustomControls:TextArea>
                            <asp:Image ID="PublicNoteHelp" runat="server" ImageUrl="~/Images/question.gif" ToolTip="<%$ Resources:Resource, Player_PublicNoteNoteHelp %>" />
                                
                            <br /><br />
                            <asp:Button ID="EditPublicNoteButton" runat="server" Text="<%$ Resources:Resource, Global_Submit %>"
                            OnClick="EditPublicNote" CssClass="GreenSmallButtonStyle" />
                    </div>
                </asp:Panel>
                <br />
                <div class="tbl">
                <div class="tblr">
                <div class="tblctop">
                
                
                <table cellpadding="5">
                    <tr>
                        <td style="vertical-align:top;">
                            <%--<asp:Image ID="Hyppo" runat="server" ImageUrl="~/Images/Hypo/PlayerOrange.jpg" />--%>
                            <div style="background-image:url('Images/Icons/PlayerIcon.png'); background-repeat:no-repeat;
                                 background-position:left; text-align:center; height:120px; width:60px; position:relative;">
                                 <div style="position:absolute; top:25px; left:15px; text-align:center; width:20px;">
                                     <asp:Label ID="ShirtNumberLabel" runat="server" Text='<%# Eval("ShirtNumber") %>'
                                     SkinID="ShirtNumLabel"></asp:Label>
                                 </div>                            
                            </div>
                        </td>
                        <td style="vertical-align:top;">
                            <asp:Label ID="BestPositionTitleLabel" runat="server" SkinID="GridLabel" Text='<%# Resources.Resource.Global_BestPositions + ":" %>'></asp:Label>
                            <asp:Label ID="BestPositionLabel" runat="server" Text='<%# Eval("BestPositionsToolTip") %>' SkinID="InfoLabel"
                             ToolTip='<%# Eval("BestPositionsAbbreviation") %>'></asp:Label>
                            <br />
                            <asp:Panel ID="IsNationalTeamPlayer" runat="server">
                                <asp:Label ID="PlaysForNTLabel" runat="server" SkinID="GridLabel"
                                 Text="<%$ Resources:Resource, NationalTeam_PlayerPlaysForNationalTeam %>"></asp:Label>
                                <asp:HyperLink ID="NationalTeamLink" runat="server" SkinID="GreenTitleHyperLink"></asp:HyperLink>
                            </asp:Panel>
                            <asp:Panel ID="NTShirtNumPanel" runat="server" Visible="false">
                                <div id="NTShirtNumLink">
                                    <asp:LinkButton ID="ShowNTShirtNumLinkButton" runat="server" SkinID="GreenTitleLink"
                                     Text="<%$ Resources:Resource, Player_ShowShirtNumDivLinkText %>"
                                     OnClientClick="javascript:ShowNTShirtDiv(); return false;"></asp:LinkButton>
                                </div>
                                <div id="NTShirtNum" style="display:none;">
                                    <asp:DropDownList ID="NTShirtNumDDL" runat="server" DataSourceID="NTShirtsDataSourse"
                                    SelectedValue='<%# Eval("NTShirtNumber") %>' DataTextField="String" DataValueField="Number">
                                    </asp:DropDownList>&nbsp;
                                    <asp:Button ID="SetNTShirtNumButton" runat="server" OnClick="SetNTShirtNumButtonClick"
                                    CssClass="GreenSmallButtonStyle" Text="<%$ Resources:Resource, Global_Set %>" />
                                    <asp:LinkButton ID="HideNTShirtNumLnkButton" runat="server" SkinID="GreenTitleLink"
                                     Text="<%$ Resources:Resource, Player_HideShirtNumDivLinkText %>"
                                     OnClientClick="javascript:HideNTShirtNumDiv(); return false;"></asp:LinkButton>
                                </div>
                            </asp:Panel>
                            <asp:Panel ID="ShirtNumPanel" runat="server" Visible="false">
                                <div id="ShirtNumLink">
                                    <asp:LinkButton ID="ShowShirtNumLnkButton" runat="server" SkinID="GreenTitleLink"
                                     Text="<%$ Resources:Resource, Player_ShowShirtNumDivLinkText %>"
                                     OnClientClick="javascript:ShowShirtDiv(); return false;"></asp:LinkButton>
                                </div>
                                <div id="ShirtNum" style="display:none;">
                                    <asp:DropDownList ID="ShirtsDDL" runat="server" DataSourceID="ShirtsDataSourse"
                                     SelectedValue='<%# Eval("ShirtNumberNum") %>' DataTextField="String" DataValueField="Number">
                                    </asp:DropDownList>
                                    &nbsp;
                                    <asp:Button ID="SubmitShirtNumButton" runat="server" CssClass="GreenSmallButtonStyle"
                                    Text="<%$ Resources:Resource, Global_Set %>" OnClick="SetShirtNumButtonClick" />
                                    &nbsp;&nbsp;&nbsp;
                                    <asp:LinkButton ID="HideShirtNumLnkButton" runat="server" SkinID="GreenTitleLink"
                                     Text="<%$ Resources:Resource, Player_HideShirtNumDivLinkText %>"
                                     OnClientClick="javascript:HideShirtNumDiv(); return false;"></asp:LinkButton>
                                 
                                </div>
                            </asp:Panel> 
                        
                        
                        
                        
                            <table cellpadding="5">
                            <tr>
                            <td style="vertical-align:top;">
                                <asp:Label ID="TeamNameTitleLabel" runat="server" Text="<%$ Resources:Resource, Global_Team %>" 
                                SkinID="InfoLabel" Visible='<%# Eval("TeamExists") %>'></asp:Label>
                                <asp:Label ID="NoTeamLabel" runat="server" Text="<%$ Resources:Resource, Player_NoTeamLabel %>" 
                                Visible='<%# !(bool)Eval("TeamExists") %>' SkinID="InfoLabel"></asp:Label>                        
                                <asp:Hyperlink ID="TeamLinkButton" runat="server" Text='<%# Eval("TeamName") %>'
                                     NavigateUrl='<%# Eval("TeamId", "TeamHomePage.aspx?TeamId={0}") %>' SkinID="GreenTitleHyperLink"
                                    Visible='<%# Eval("TeamExists") %>'></asp:Hyperlink>
                                <br />
                                <asp:Label ID="CharismaTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Charisma + ":"%>'  SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="CharismaLabel" runat="server" Text='<%# Eval("Charisma") %>' SkinID="GridLabel" />
                                <br />
                                <asp:Label ID="StrongFootTitleLabel" runat="server" Text='<%# Resources.Resource.Global_StrongFoot+ ":"%>' SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="StrongFootLabel" runat="server" Text='<%# Eval("StrongFoot") %>' SkinID="GridLabel"/>
                            
                             
                            </td>
                            <td style="vertical-align:top;">
                                <%--<asp:Label ID="MoodTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_MoodTitleLabel %>" SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="MoodLabel" runat="server" Text='<%# Eval("Mood") %>' SkinID="GridLabel" Visible='<%# !(bool)Eval("IsPlayingMatch") %>' />
                                <asp:Label ID="MoodUnclearLabel" runat="server" Text="<%$ Resources:Resource, Player_MoodUnclearLabel %>" Visible='<%# Eval("IsPlayingMatch") %>'
                                 SkinID="GridLabel"></asp:Label>                        
                                <br />--%>
                                <asp:Label ID="ExperienceTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Experience + ":"%>' SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="ExperienceLabel" runat="server" Text='<%# Eval("Experience") %>' SkinID="GridLabel" />
                                <br />
                                <asp:Label ID="WageTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_WageTitleLabel %>" SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="WageLabel" runat="server" Text='<%# FormatNumber(Eval("Wage")) %>' SkinID="GridLabel" />
                                <br />                      
                                <asp:Panel runat="server" ID="WageNegPanel">
                                    <asp:Label ID="NextNegotiationsTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_ContractTill %>" SkinID="InfoLabel"></asp:Label>
                                    <asp:Label ID="NextNegotiationsLabel" runat="server" Text='<%# Eval("NextWageNegotiations") %>' SkinID="GridLabel" /> 
                                    <br />
                                </asp:Panel>
                                <asp:Label ID="PlayingMatch" runat="server" Text="<%$ Resources:Resource, Player_PlayingMatch %>" Visible='<%# Eval("IsPlayingMatch") %>'
                                 SkinID="GridLabel"></asp:Label>
                            
                            </td>
                            </tr>
                            </table>
                        
                                            
                        </td>
                    </tr>
                </table>
            
               <%-- <asp:Label ID="PublicNoteLabel" runat="server" Text='<%# Eval("PublicNote") %>' SkinID="GridLabel"></asp:Label>--%>
                <asp:Panel ID="TopPotentialsPanel" runat="server" Visible='<%# !(bool)Eval("TeamExists") %>' >
                    <asp:Label ID="TopPotentialsLabel" runat="server" Text='<%# Eval("TopPotentials") %>' SkinID="GridLabel"></asp:Label>
                </asp:Panel>
                <asp:Panel ID="PrivateNotePanel" runat="server" Visible="false">
                    <div id="showprivatenote">
                        <asp:Label ID="PrivateNoteTitleLable" runat="server" SkinID="GridLabel" Text='<%# Eval("PrivateNote").ToString().Replace("\r\n", " <br /> ") %>' ></asp:Label>
                        <br />
                        <asp:LinkButton ID="EditPrivateNoteLinkButon" runat="server" Text="<%$ Resources:Resource, Player_EditPrivateNoteText %>"
                        OnClientClick="javascript: EditPrivateNote(); return false;" SkinID="GreenTitleLink" ></asp:LinkButton> 
                    </div>  
                    <div id="editprivatenote" style="display:none;">
                    
                        <CustomControls:TextArea ID="PrivateNoteTextBox" runat="server" Width="400" Textmode="MultiLine" MaxLength="250" Rows="3"
                         Text='<%# Eval("PrivateNote") %>'></CustomControls:TextArea>
                         <asp:Image ID="PrivateNoteImage" runat="server" ImageUrl="~/Images/question.gif" ToolTip="<%$ Resources:Resource, Player_PrivateNoteHelp %>" />
                        <br /><br />
                        <asp:Button ID="SubmitPrivateNoteButton" runat="server" OnClick="SubmitPrivateNote" CssClass="GreenSmallButtonStyle" 
                        Text="<%$ Resources:Resource, Global_Submit %>" />
                    </div>  
                    <br />               
                </asp:Panel>
                <asp:Panel ID="NTPrivateNote" runat="server" Visible="false">
                    <br />
                    <div id="NTPrivateNoteShow">
                        <asp:Label ID="NTPrivateNoteLabel" runat="server" SkinID="GridLabel" Text='<%# Eval("NTPrivateNote").ToString().Replace("\r\n", " <br />") %>' ></asp:Label>
                        <br />
                        <asp:LinkButton ID="EditNTPrivateNoteLinkButon" runat="server" Text="<%$ Resources:Resource, Player_EditPrivateNoteText %>"
                        OnClientClick="javascript: EditNTPrivateNote(); return false;" SkinID="GreenTitleLink" ></asp:LinkButton> 
                    </div>
                    <div id="NTPrivateNoteEdit" style="display:none;">
                        <CustomControls:TextArea ID="NTPrivateNoteTextBox" runat="server" Width="400" Textmode="MultiLine" MaxLength="250" Rows="3"
                         Text='<%# Eval("NTPrivateNote") %>'></CustomControls:TextArea>
                         <asp:Image ID="PrivateNTNoteImage" runat="server" ImageUrl="~/Images/question.gif" ToolTip="<%$ Resources:Resource, Player_PrivateNtNoteHelp %>" />
                         <br /><br />
                         <asp:Button ID="SubmitNTPrivateNote" runat="server" OnClick="SubmitNTPrivateNote"
                          CssClass="GreenSmallButtonStyle"  Text="<%$ Resources:Resource, Global_Submit %>" />
                    </div>
                </asp:Panel>
            
                <asp:Panel ID="NTInvitePanel" runat="server" Visible="false">
                    <asp:LinkButton ID="InviteToNT" runat="server" Text="<%$ Resources:Resource, NationalTeam_InvitePlayer %>"
                     OnClick="InviteToNT" SkinID="GreenTitleLink"></asp:LinkButton>
                </asp:Panel>
                <asp:Panel ID="NTReleasePanel" runat="server" Visible="false">
                    <asp:LinkButton ID="RleaseFromNtLinkButton" runat="server" Text="<%$ Resources:Resource, NationalTeam_ReleasePlayer %>"
                     OnClick="ReleaseFromNT" SkinID="GreenTitleLink"></asp:LinkButton>            
                </asp:Panel> 
                
                </div>
                <div class="tblctop">
                
                
                <asp:Panel ID="GoalsPanel" runat="server" Visible='<%# (!(bool)Eval("IsPlayingMatch"))&&(bool)Eval("TeamExists") %>'>
                        <div style="line-height:150%;">
                        <asp:Label ID="LeagueGoalsThisSeasonTitleLabel" runat="server" SkinID="InfoLabel"
                            Text="<%$ Resources:Resource, Player_LeagueGoalsThisSeasonTitleLabel %>"></asp:Label>
                        <asp:Label ID="LeagueGoalsThisSeasonLabel" runat="server" Text='<%# Eval("LeagueGoals") %>' SkinID="GridLabel"></asp:Label>
                        <br />
                        <asp:Label ID="NationalCupGoalsTitleLabel" runat="server" SkinID="InfoLabel"
                            Text="<%$ Resources:Resource, Player_CupGoalsThisSeasonTitleLabel %>"></asp:Label>
                        <asp:Label ID="NationalCupGoalsLabel" runat="server" Text='<%# Eval("NationalCupGoals") %>' SkinID="GridLabel"></asp:Label>
                        <br />
                        <asp:Label ID="InternationalCupGoalsTitleLabel" runat="server" SkinID="InfoLabel"
                            Text="<%$ Resources:Resource, Player_InternationalCupGoalsThisSeasonTitleLabel %>"></asp:Label>
                        <asp:Label ID="InternationalCupGoalsLabel" runat="server" Text='<%# Eval("InternationalCupGoals") %>' 
                        SkinID="GridLabel"></asp:Label>
                        <br />
                        <asp:Label ID="CarrerLeagueGoalsThisSeasonTitleLabel" runat="server" SkinID="InfoLabel"
                            Text="<%$ Resources:Resource, Player_CareerGoalsLeague %>"></asp:Label>
                        <asp:Label ID="CarrerLeagueGoalsThisSeasonLabel" runat="server" Text='<%# Eval("CareerGoalsLeague") %>' SkinID="GridLabel"></asp:Label>
                        <br />
                        <asp:Label ID="CarrerNationalCupGoalsTitleLabel" runat="server" SkinID="InfoLabel"
                            Text="<%$ Resources:Resource, Player_CareerGoalsCup %>"></asp:Label>
                        <asp:Label ID="CarrerNationalCupGoalsLabel" runat="server" Text='<%# Eval("CareerGoalsCup") %>' SkinID="GridLabel"></asp:Label>
                        <br />
                        <asp:Label ID="CarrerInternationalCupGoalsTitleLabel" runat="server" SkinID="InfoLabel"
                            Text="<%$ Resources:Resource, Player_CareerGoalsInternationalCup %>"></asp:Label>
                        <asp:Label ID="CarrerInternationalCupGoalsLabel" runat="server" Text='<%# Eval("CareerGoalsInternationalCup") %>' 
                        SkinID="GridLabel"></asp:Label>
                        </div>
                </asp:Panel>
                
                </div>
                </div>
                </div>
                
            <%--</div>
            </div>
                     --%>   
            
            <asp:Panel ID="PrivateAttributesPanel" runat="server">
                <%--<div class="basic_element">
                <div class="red_title">--%>
                   <br /><br />
                   <asp:Label ID="AtributesTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_PlayersAttributes %>" CssClass="header_text"></asp:Label>
               <%-- </div>
                <div class="padding5">--%>
                    <br />
                    <table cellpadding="5px" cellspacing="3">
                    <tr>
                        <td>
                            <asp:Label ID="InstinctsTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Instincts + ":"%>' SkinID="InfoLabel"></asp:Label>
                            <br />
                            <asp:Label ID="GoalKeepingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_GoalKeeping + ":"%>' SkinID="InfoLabel"></asp:Label>
                            <br />
                            <asp:Label ID="PositioningTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Positioning + ":"%>' SkinID="InfoLabel"></asp:Label>
                        
                        <td>
                            <asp:Label ID="InstinctsLabel" runat="server" Text='<%# Eval("Instincts") %>' SkinID="GridLabel"  CssClass='<%# (bool)Eval("TrainedInstincts") ? "NewsDateStyle" : "NewsItemStyle" %>'
                            ToolTip='<%# Resources.Resource.Global_Instincts + " " + Eval("Instincts").ToString() + ". " + ((bool)Eval("TrainedInstincts") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>' />
                            <br />
                            <asp:Label ID="GoalKeepingLabel" runat="server" Text='<%# Eval("GoalKeeping") %>' CssClass='<%# (bool)Eval("TrainedGoalKeeping") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_GoalKeeping + " " + Eval("GoalKeeping").ToString() + ". " + ((bool)Eval("TrainedGoalKeeping") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                         <br />
                            <asp:Label ID="PositioningLabel" runat="server" Text='<%# Eval("Positioning") %>' CssClass='<%# (bool)Eval("TrainedPositioning") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_Positioning + " " + Eval("Positioning").ToString() + ". " + ((bool)Eval("TrainedPositioning") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>' />
                        </td>
                        </td>
                        <td>
                            <asp:Label ID="StaminaTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Stamina+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        
                            <br />
                            <asp:Label ID="PowerTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Power + ":"%>' SkinID="InfoLabel"></asp:Label>
                            <br />
                            <asp:Label ID="TacklingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Tackling+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <td>
                            <asp:Label ID="StaminaLabel" runat="server" Text='<%# Eval("Stamina") %>' CssClass='<%# (bool)Eval("TrainedStamina") ? "NewsDateStyle" : "NewsItemStyle" %>' 
                            ToolTip='<%# Resources.Resource.Global_Stamina + " " + Eval("Stamina").ToString() + ". " + ((bool)Eval("TrainedStamina") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>' /> 
                            <br />
                            <asp:Label ID="PowerLabel" runat="server" Text='<%# Eval("Power") %>'  CssClass='<%# (bool)Eval("TrainedPower") ? "NewsDateStyle" : "NewsItemStyle" %>' 
                            ToolTip='<%# Resources.Resource.Global_Power + " " + Eval("Power").ToString() + ". " + ((bool)Eval("TrainedPower") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                            <br />
                            <asp:Label ID="TacklingLabel" runat="server" Text='<%# Eval("Tackling") %>' CssClass='<%# (bool)Eval("TrainedTackling") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_Tackling + " " + Eval("Tackling").ToString() + ". " + ((bool)Eval("TrainedTackling") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                        </td>
                        </td>
                        <td>
                            <asp:Label ID="HeadingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Heading + ":"%>' SkinID="InfoLabel"></asp:Label>
                            <br />
                            <asp:Label ID="QuicknessTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Quickness+ ":"%>' SkinID="InfoLabel"></asp:Label>
                            <br />
                            <asp:Label ID="TechniqueTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Technique+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <td>
                            <asp:Label ID="HeadingLabel" runat="server"  Text='<%# Eval("Heading") %>' CssClass='<%# (bool)Eval("TrainedHeading") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_Heading + " " + Eval("Heading").ToString() + ". " + ((bool)Eval("TrainedHeading") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>'/>
                            <br />
                            <asp:Label ID="QuicknessLabel" runat="server" Text='<%# Eval("Quickness") %>' CssClass='<%# (bool)Eval("TrainedQuickness") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_Quickness + " " + Eval("Quickness").ToString() + ". " + ((bool)Eval("TrainedQuickness") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                            <br />
                            <asp:Label ID="TechniqueLabel" runat="server" Text='<%# Eval("Technique") %>' CssClass='<%# (bool)Eval("TrainedTechnique") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_Technique + " " + Eval("Technique").ToString() + ". " + ((bool)Eval("TrainedTechnique") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                        </td>
                        </td>
                        <td>
                            <asp:Label ID="ShortPassingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_ShortPassing+ ":"%>' SkinID="InfoLabel"></asp:Label>
                            <br />
                            <asp:Label ID="LongPassingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_LongPassing + ":"%>' SkinID="InfoLabel"></asp:Label>
                            <br />
                            <asp:Label ID="ShootingTitleLabel" runat="server" Text='<%# Resources.Resource.Global_Shooting+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        <td>
                            <asp:Label ID="ShortPassingLabel" runat="server" Text='<%# Eval("Short Passing") %>' CssClass='<%# (bool)Eval("TrainedShortPassing") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_ShortPassing + " " + Eval("Short Passing").ToString() + ". " + ((bool)Eval("TrainedShortPassing") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute)  %>'/>
                            <br />
                            <asp:Label ID="LongPassingLabel" runat="server" Text='<%# Eval("Long Passing") %>' CssClass='<%# (bool)Eval("TrainedLongPassing") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_LongPassing + " " + Eval("Long Passing").ToString() + ". " + ((bool)Eval("TrainedLongPassing") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                            <br />
                            <asp:Label ID="ShootingLabel" runat="server" Text='<%# Eval("Shooting") %>' CssClass='<%# (bool)Eval("TrainedShooting") ? "NewsDateStyle" : "NewsItemStyle" %>'  
                            ToolTip='<%# Resources.Resource.Global_Shooting + " " + Eval("Shooting").ToString() + ". " + ((bool)Eval("TrainedShooting") ? Resources.Resource.Player_TrainedwordBeforeAttribute : Resources.Resource.Player_DidNotTrainWordBeforeAttribute) %>'/>
                        </td>
                        </td>
                    </tr>
                    </table>
                
            </asp:Panel>
            <br />
            <asp:Hyperlink ID="LinkButton2" runat="server" Text="<%$ Resources:Resource, Player_LinkButton2 %>" onclick="ShowTransfers()"
                SkinID="GreenTitleHyperLink"></asp:Hyperlink>
            <div id="listofTransfers">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="TransfersDataSource" SkinID="Professional">
                    <Columns>
                        <asp:BoundField DataField="Date" HeaderText="<%$ Resources:Resource, Global_Date %>" ItemStyle-CssClass="LoggedInMessagesStyle" />
                        <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_FromTeam %>">
                            <ItemTemplate>
                                <asp:HyperLink ID="FromTeamHyperlink" runat="server" Text='<%# Eval("[From team]") %>'
                                    SkinID="BlackHyperLinkSkin" NavigateUrl='<%# Eval("SellerId", "TeamHomePage.aspx?TeamId={0}") %>'></asp:HyperLink>
                                <%--<asp:LinkButton ID="LinkButton2" runat="server" Text='<%# Eval("[From team]") %>' 
                                PostBackUrl='<%# Eval("SellerId", "TeamHomePage.aspx?TeamId={0}") %>'
                                    SkinID="GridLinkButton"></asp:LinkButton>--%>
                            </ItemTemplate>   
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_ToTeamHeaderText %>">
                            <ItemTemplate>
                                <asp:HyperLink ID="ToTeamHyperlink" runat="server" Text='<%# Eval("To team") %>'
                                    SkinID="BlackHyperLinkSkin" NavigateUrl='<%# Eval("BuyerId", "TeamHomePage.aspx?TeamId={0}") %>'></asp:HyperLink>
                            <%--<asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Eval("To team") %>'
                                            PostBackUrl='<%# Eval("BuyerId", "TeamHomePage.aspx?TeamId={0}") %>'
                                            SkinID="GridLinkButton" ></asp:LinkButton>  --%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_TransferSum %>">
                            <ItemTemplate>
                                <asp:Label ID="TransferSumLabel" runat="server" Text='<%# GetNivdalData.GetNivdalData.FormattedNumber(Eval("Transfer sum")) %>' SkinID="GridLabel"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <asp:Label ID="NoTransfersLabel" runat="server" Text="<%$ Resources:Resource, PlayerTransfers_NoTransfersLabel %>" SkinID="GridLabel"></asp:Label>            
                    </EmptyDataTemplate>   
                </asp:GridView>
            </div>
            </div>
            </div>
        </ItemTemplate>
    </asp:FormView>
    <asp:Panel ID="TrainingUpdatesPanel" runat="server" Visible="false">
        <div class="basic_element">
        <div class="red_title">
           <asp:Label ID="TrainingTitleLable" runat="server" Text="<%$ Resources:Resource, Global_Training %>" CssClass="white_title"></asp:Label>
        </div>
        <div class="padding5">
        <asp:Label ID="TrainingStringLabel" runat="server" SkinID="GridLabel"></asp:Label>
        <br />
        <asp:HyperLink ID="TrainingPageHyperlink" runat="server" NavigateUrl="~/Training.aspx"
         SkinID="GreenTitleHyperLink" Text="<%$ Resources:Resource, Global_Change %>"></asp:HyperLink>
         <br /><br />
        <asp:Label ID="TrainingReportsTitleLabel" runat="server" Text='<%# Resources.Resource.Global_LatestTrainingReports+ ":"%>' SkinID="InfoLabel"></asp:Label>
        <br />
        <asp:GridView ID="TrainingReportsGridVeiw" runat="server" SkinID="Professional"  AutoGenerateColumns="false" DataSourceID="TrainingReportsDataSourse"
         AllowSorting="false" Width="50%">
         <Columns>
            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Date %>" ItemStyle-Width="30%">
                <ItemTemplate>
                    <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("ReportDate") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Attribute %>" ItemStyle-Width="30%">
                <ItemTemplate>
                    <asp:Label ID="AtgtributeLabel" runat="server" Text='<%# Eval("Attribute") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate>            
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Change %>" ItemStyle-Width="20%">
                <ItemTemplate>
                    <asp:Label ID="ChangeLabel" runat="server" Text='<%# Eval("OldValue") + " >> " + Eval("NewValue") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="10%" HeaderText="<%$ Resources:Resource, Global_Hours %>"> 
                <ItemTemplate>
                        <asp:Label ID="TrainingHoursLabel" runat="server" Text='<%# Eval("TrainingHours") %>' SkinID="GridLabel"
                            Visible='<%# Eval("TrainingHours").ToString() != "0" %>'></asp:Label>
                    </ItemTemplate>
            </asp:TemplateField>
         </Columns>
         <EmptyDataTemplate>
             <asp:Label ID="NoTrainingReportsLabel" runat="server" Text="<%$ Resources:Resource, Player_NoTrainingReportsLabel %>" SkinID="GridLabel"></asp:Label>
         </EmptyDataTemplate>
        </asp:GridView>
        <asp:SqlDataSource ID="TrainingReportsDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetPlayerTrainingReports" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
        <br />
        <asp:UpdatePanel ID="TrainingGraphPanel" runat="server" Visible="false" UpdateMode="Conditional">
        <ContentTemplate>        
            <asp:Chart ID="TrainingFollowChart" runat="server" Width="600" ImageLocation="~/Images/ChartsJunk/Chart#UID" 
            ImageStorageMode="UseHttpHandler" ImageType="Png" EnableViewState="true">
                <Titles>
                    <asp:Title Name="Title1" Text="<%$ Resources:Resource, Player_AttributesDevelopmentChartTitle %>" Alignment="TopLeft" Font="Arial, 12px, style=Bold"></asp:Title>
                </Titles>
                <Legends>
                    <asp:Legend IsTextAutoFit="true" Name="Default" Font="Arial, 12px, style=Bold"></asp:Legend>
                </Legends>
                <ChartAreas>
                    <asp:ChartArea  Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="White" 
                    BackColor="Gainsboro" ShadowColor="Transparent" BackGradientStyle="TopBottom" >
                        <area3dstyle Rotation="10" perspective="10" Inclination="15" IsRightAngleAxes="False" wallwidth="0" IsClustered="False"></area3dstyle>
					    <axisy linecolor="64, 64, 64, 64" IsLabelAutoFit="False" Interval="5">
						    <labelstyle font="Arial, 8.25pt, style=Bold" />
						    <majorgrid linecolor="64, 64, 64, 64" />
					    </axisy>
					    <axisx linecolor="64, 64, 64, 64" IsLabelAutoFit="False">
						    <labelstyle font="Arial, 8.25pt, style=Bold" IsStaggered="True" />
						    <majorgrid linecolor="64, 64, 64, 64" />
					    </axisx>
				    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>            
            <br />
            <table>
            <tr>
            <td>
            <asp:CheckBox ID="InstinctsCheckbox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Instincts %>"
                CssClass="NewsItemStyle" />        
            </td>
            <td>
            <asp:CheckBox ID="StaminaCheckBox" runat="server" Checked="false" Text="<%$ Resources:Resource, Global_Stamina %>"
               CssClass="NewsItemStyle" />
            </td>
            <td>
            <asp:CheckBox ID="HeadingCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Heading %>"
                CssClass="NewsItemStyle" />
            </td>
            <td>
            <asp:CheckBox ID="ShortPassingCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_ShortPassing %>" 
                CssClass="NewsItemStyle"/>
            </td>
            <td rowspan="2" style="vertical-align:bottom;">
                <asp:Button runat="server" ID="RefreshGraohButton" Text="<%$ Resources:Resource, Global_Submit %>"
                 CssClass="GreenSmallButtonStyle" OnClick="RecreateGraph" />
            
            </td>
            </tr>
            <tr>
            <td>
                <asp:CheckBox ID="GoalkeepingCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Goalkeeping %>"
                CssClass="NewsItemStyle" />
            </td>
            <td>
            <asp:CheckBox ID="PowerCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Power %>"
               CssClass="NewsItemStyle" />
            </td>
            <td>
            <asp:CheckBox ID="QuicknessCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Quickness %>"
                CssClass="NewsItemStyle" />
            </td>
            <td>            
            <asp:CheckBox ID="LongPassingCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_LongPassing %>"
                 CssClass="NewsItemStyle" />
            </td>
            </tr>
            <tr>
            <td>
            <asp:CheckBox ID="PositioningCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Positioning %>"
               CssClass="NewsItemStyle" />
            </td>
            <td>
            <asp:CheckBox ID="TacklingCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Tackling %>"
               CssClass="NewsItemStyle" />
            </td>
            <td>
            <asp:CheckBox ID="TechniqueCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Technique %>" 
               CssClass="NewsItemStyle" />
            </td>
            <td>
            <asp:CheckBox ID="ShootingCheckBox" runat="server" Checked="true" Text="<%$ Resources:Resource, Global_Shooting %>"
               CssClass="NewsItemStyle" />
            </td>
            </tr>
            </table>
            <br />
            <asp:Button ID="SelectAllAttributes" runat="server" Text="<%$ Resources:Resource, InternalTeamMessages_CheckAllCheckboxText %>"
                CssClass="GreenSmallButtonStyle" OnClientClick="CheckAllTrainingHistoryCheckboxes('true'); return false;" />
            &nbsp;&nbsp;
            <asp:Button ID="ClearAllAttributesButton" runat="server" Text="<%$ Resources:Resource, Training_ClearButtonText %>"
                CssClass="GreySmallButtonStyle"  OnClientClick="CheckAllTrainingHistoryCheckboxes('false'); return false;" />

        </ContentTemplate>        
        </asp:UpdatePanel>
        </div>
        </div>

        </asp:Panel>
        
        <asp:Panel ID="SurgeryPanel" runat="server" Visible="false">
        <div class="basic_element">
        <div class="red_title">
           <asp:Label ID="SurgeryPanelTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_SurgeryButton %>" CssClass="white_title"></asp:Label>
        </div>
        <div class="padding5">
            <asp:Button ID="SurgeryButton" runat="server" Text="<%$ Resources:Resource, Player_SurgeryButton %>" OnClick="SurgeryButton_Click" 
            CssClass="GreenButtonTextStyle"/>
        </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="SellPanel" runat="server" Visible="false">    
        <div class="basic_element">
        <div class="red_title">
            <asp:Label ID="SellTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_Button1 %>" CssClass="white_title"></asp:Label>
        </div>
        <div class="padding5">
            <table>
                <tr>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="TransferTimeOptionsSqlDataSource"
                            DataTextField="length" DataValueField="Id">
                        </asp:DropDownList>
                        <asp:SqlDataSource ID="TransferTimeOptionsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                            SelectCommand="Nivdal_GetTransferLengthParameters" SelectCommandType="StoredProcedure">
                        </asp:SqlDataSource>
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="<%$ Resources:Resource, Player_Button1 %>" 
                        OnClick="Button1_Click" ValidationGroup="SellAPlayer"
                            CssClass="GreenButtonTextStyle"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DropDownList1"
                            ErrorMessage="Please select auction length" Height="16px" InitialValue="1" ValidationGroup="SellAPlayer"
                            Style="margin-right: 0px" Width="183px" Font-Names="Arial" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
            <asp:SqlDataSource ID="PlayerDetailsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetPlayerInfo" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
        </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="PendingSalePanel" runat="server" Visible="false">
        <div class="basic_element">
        <div class="red_title">
           <asp:Label ID="IsPendingTransferLabel" runat="server" Text="<%$ Resources:Resource, Player_IsPendingTransferLabel %>" CssClass="white_title"></asp:Label>
        </div>
        <div class="padding5">
            <asp:Button ID="CancelTransferButton" runat="server" Text="<%$ Resources:Resource, Player_CancelTransferButton %>" CssClass="GreenSmallButtonStyle"
             Message="<%$ Resources:Resource, AreYouSure %>" OnClick="CancelTransfer" OnClientClick='return confirm(this.getAttribute("Message"))' />
        
        </div>
        </div>         
    </asp:Panel>
    
    <asp:UpdatePanel ID="SaleUpdatePanel" runat="server" UpdateMode="Conditional">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="RefreshTimer" EventName="Tick" />
    </Triggers>
    <ContentTemplate>
        <asp:Panel ID="ForSalePanel" runat="server">
        <asp:Timer ID="RefreshTimer" runat="server" OnTick="RefeshTimerTick" Interval="60000">
        </asp:Timer>
        <asp:FormView ID="PlayerBidFormView" runat="server" DataSourceID="PlayerBidSqlDataSource" style="width:100%;">
            <ItemTemplate>
                <div class="basic_element">
                <div class="red_title">
                    <asp:Label ID="ForSaleLabel" runat="server" Text="<%$ Resources:Resource, ListOfplayers_ForSaleToolTip %>" CssClass="white_title"></asp:Label>
                </div>
                <div class="padding5">
                <table style="width:100%;" cellpadding="3">
                    <tr>
                        <td style="width:30%;" >
                            <asp:Label ID="CurrentBidTitleLabel" runat="server" Text='<%# Resources.Resource.Global_CurrentBid+ ":"%>' SkinID="InfoLabel"></asp:Label>
                        </td>
                        <td style="width:70%;" >
                            <asp:Image ID="BidDeadLineImage" runat="server" ImageUrl="~/Images/Icons/bid_deadline.png" />
                            <asp:Label ID="BidDeadlineTitleLabel" runat="server" Text="<%$ Resources:Resource, Global_BidDeadLine %>" SkinID="InfoLabel"></asp:Label>                            
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="BidDeadlineLabel" runat="server" Text='<%# Bind("BidDeadline") %>' SkinID="GridLabel"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="background-image:url('Images/Icons/current_bid_bg.jpg'); background-position:left; 
                                background-repeat:no-repeat;width:155px; height:36px; text-align:right; padding-top:13px; ">
                                <div style="margin-right:30px;">
                                    <asp:Label ID="Label1" runat="server" Text='<%# FormatNumber(Eval("CurrentBid")) %>' SkinID="CurrentBidLabel" 
                                     Visible='<%# IsBiddingTeam(Eval("BiddingTeamName")) %>'></asp:Label>                            
                                 </div>
                            </div>
                        </td>
                        <td>
                            <asp:Panel runat="server" ID="CanBidPanel">
                                <asp:Image ID="NextPossibleBid" runat="server" ImageUrl="~/Images/Icons/next_possible_bid.png" />
                                <asp:Label ID="NextPossibleBidLabel" runat="server" Text="<%$ Resources:Resource, Player_NextPossibleBidLabel %>" SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="Label4" runat="server" Text='<%# FormatNumber(Eval("NextPossibleBid")) %>' SkinID="GridLabel"></asp:Label>
                                <asp:HiddenField ID="NextBidHiddenField" runat="server" Value='<%# Eval("NextPossibleBid") %>' />                                
                                <asp:Image ID="AtukImage2" runat="server" ImageUrl="~/Images/Icons/atuk.png" />
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="SubmitButton" runat="server" Text="<%$ Resources:Resource, Global_Bid %>" ValidationGroup="BidOnPlayer"
                                 OnClientClick='<%# BidOnPlayerButtonOnClientClick(Eval("NextPossibleBid").ToString()) %>'
                                 OnClick="SubmitButton_Click" CssClass="GreenSmallButtonStyle"/>
                                <cc1:Flyout ID="AtukFlyout2" runat="server" AttachTo="AtukImage2" FadingEffect="true">
                                    <div class="ToolTipStyle">
                                        <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Resource, Atuks %>"></asp:Label>
                                    </div>
                                </cc1:Flyout>
                            </asp:Panel>                        
                        </td>
                        
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="ByLabel" runat="server" Text="<%$ Resources:Resource, Player_ByLabel %>" SkinID="GridLabel"  Visible='<%# IsBiddingTeam(Eval("BiddingTeamName")) %>'></asp:Label>
                            <asp:Label ID="BiddingTeamIdLabel" runat="server" Text='<%# Eval("BiddingTeamName") %>' 
                            Visible='<%# !IsBiddingTeam(Eval("BiddingTeamName")) %>' SkinID="GridLabel"></asp:Label>
                            <asp:Hyperlink ID="BiddingTeamIdLinkButton" runat="server" Text='<%# Eval("BiddingTeamName") %>'
                                 NavigateUrl='<%# Eval("BiddingTeamId", "TeamHomePage.aspx?TeamId={0}") %>'  SkinID="GreenTitleHyperLink" 
                                 Visible='<%# IsBiddingTeam(Eval("BiddingTeamName")) %>'></asp:Hyperlink>                              
                            
                        </td>
                        <td>
                            <asp:Panel ID="ConditionalBidPanel" runat="server" Visible='<%# IsPremium() %>'>
                                <asp:FormView ID="ConditionalBidFormView" runat="server" DataSourceID="ConditionalBidDataSource" 
                                OnItemCommand="ConditionalBidCommand">
                                    <ItemTemplate>
                                       
                                        <asp:Panel ID="BidExistsPanel" runat="server" Visible='<%# Eval("ConditionalBidExists") %>'>
                                            <asp:Image ID="ConditionalBidImage1" runat="server" ImageUrl="~/Images/Icons/rase_bid.png" />
                                            <asp:Label ID="ConditionalBidLabel" runat="server" Text='<%# "Conditional bid of " + FormatNumber(Eval("ConditionalBidSum")) + " is set" %>'
                                             SkinID="InfoLabel"></asp:Label>
                                            <br />
                                            <asp:Button ID="DeleteConditionalBidButton" runat="server" Text="<%$ Resources:Resource, Player_DeleteConditionalBidButton %>" CssClass="GreenSmallButtonStyle"
                                             CommandName="Delete" CommandArgument='<%# Eval("ConditionalBidId") %>' />
                                            <asp:Image ID="ConditionalBidHelpImage1" runat="server" ImageUrl="~/Images/question.gif" style="vertical-align:middle;" />
                                            <cc1:Flyout ID="Flyout1" runat="server" AttachTo="ConditionalBidHelpImage1" FadingEffect="true">
                                                <div class="ToolTipStyle" style="width:300px;">
                                                    <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Resource, Player_ConditionalBidHelp %>"></asp:Label>
                                                </div>
                                            </cc1:Flyout>                                
                                        </asp:Panel>
                                        <asp:Panel ID="PutBidPanel" runat="server" Visible='<%# !(bool)Eval("ConditionalBidExists") %>'>
                                            <asp:Image ID="ConditionalBidImage2" runat="server" ImageUrl="~/Images/Icons/rase_bid.png" />
                                            <asp:Label ID="PutConditionalBidLabel" runat="server" Text="<%$ Resources:Resource, Player_PutConditionalBidLabel %>" SkinID="InfoLabel"></asp:Label>
                                            <asp:TextBox ID="ConditionalBidTextBox" runat="server" MaxLength="12" Width="85" TextMode="SingleLine" ValidationGroup="CondBid" ></asp:TextBox>
                                            <asp:Image ID="AtukImage1" runat="server" ImageUrl="~/Images/Icons/atuk.png" style="vertical-align:middle" />
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ControlToValidate="ConditionalBidTextBox"
                                             ValidationExpression="[1-9][0-9][0-9][0-9][0-9]*" SetFocusOnError="true" ValidationGroup="CondBid" ></asp:RegularExpressionValidator>
                                            &nbsp;
                                            <asp:Button ID="SetConditionalBidButton" runat="server" Text="<%$ Resources:Resource, Global_Set %>" CommandName="Update" CssClass="GreenSmallButtonStyle"
                                             ValidationGroup="CondBid" CausesValidation="true"  />
                                            &nbsp;
                                            <asp:Image ID="ConditionalBidHelpImage2" runat="server" ImageUrl="~/Images/question.gif" style="vertical-align:middle;" />
                                            <cc1:Flyout ID="Flyout2" runat="server" AttachTo="ConditionalBidHelpImage2" FadingEffect="true">
                                                <div class="ToolTipStyle" style="width:300px;">
                                                    <asp:Label ID="ToolTipLabel" runat="server" Text="<%$ Resources:Resource, Player_ConditionalBidHelp %>"></asp:Label>
                                                </div>
                                            </cc1:Flyout>
                                            <cc1:Flyout ID="AtukFlyout2" runat="server" AttachTo="AtukImage1" FadingEffect="true">
                                                <div class="ToolTipStyle">
                                                    <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Resource, Atuks %>"></asp:Label>
                                                </div>
                                            </cc1:Flyout>
                                        </asp:Panel>
                                    </ItemTemplate>
                                </asp:FormView>                        
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
                </div>
                </div>
            </ItemTemplate>
        </asp:FormView>
        <asp:SqlDataSource ID="PlayerBidSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetTransferlistedPlayerInfo" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="ConditionalBidDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetConditionalBidOnPlayerInfo" SelectCommandType="StoredProcedure">       
        </asp:SqlDataSource>
        
        
        </asp:Panel>
    </ContentTemplate>
    </asp:UpdatePanel>
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="BestRatings" runat="server" CssClass="white_title" Text="<%$ Resources:Resource, Player_BestRatings %>"></asp:Label>
    </div>
    <div class="padding5">

    <asp:GridView ID="BestRatingsGridvew" runat="server" SkinID="Professional" DataSourceID="BestRatingsDataSource" AllowPaging="true"
     AutoGenerateColumns="false">
        <EmptyDataTemplate>
            <asp:Label ID="NoMatchesLabel" runat="server" Text="<%$ Resources:Resource, Player_NoMatchesLabel %>" SkinID="GridLabel"></asp:Label>
        </EmptyDataTemplate> 
        <Columns>
            <asp:TemplateField ItemStyle-Width="15%">
                <ItemTemplate>
                    <asp:Label ID="PositionGroupLabel" runat="server" SkinID="GridLabel" Text='<%# Eval("PositionGroup") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Date %>" ItemStyle-Width="21%">
                <ItemTemplate>
                    <asp:Label ID="MatchDateTitleLabel" runat="server" SkinID="GridLabel" Text='<%# Eval("MatchDate") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>            
            <asp:TemplateField  HeaderText="<%$ Resources:Resource, Global_Match %>" ItemStyle-Width="30%">
                <ItemTemplate>
                    <asp:HyperLink ID="MatchLink" runat="server" Text='<%# Eval("MatchTitle") %>' SkinID="BlackHyperLinkSkin"
                     NavigateUrl='<%# "~/MatchPage.aspx?MatchId=" + Eval("MatchId") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="30%" HeaderText="<%$ Resources:Resource, Global_Position %>" >
                <ItemTemplate>
                    <asp:Label ID="PositionLabel" runat="server" Text='<%# Eval("Position") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField  ItemStyle-Width="4%" >
                <HeaderTemplate>
                    <asp:Label ID="RatingTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_RatingTitleLabel %>" ToolTip="<%$ Resources:Resource, Player_RatingTitleToolTip %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="RatingLabel" runat="server" Text='<%# Eval("Rating") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate> 
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="BestRatingsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
      SelectCommand="Nivdal_GetPlayerMaxRatings" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    
    </div>
    </div>
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="LatestMatchesTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_LatestMatchesTitleLabel %>" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">

        <asp:GridView ID="LatestMatchesGridView" runat="server" AutoGenerateColumns="false" DataSourceID="PlayerMatchesDataSourse"
         SkinID="Professional" AllowPaging="True" PageSize="10">
         <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
            Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
         <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
         <Columns>
            <asp:TemplateField ItemStyle-Width="7%" HeaderText="<%$ Resources:Resource, Global_Date %>">
                <ItemTemplate>
                    <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField  ItemStyle-Width="4%">
                <ItemTemplate>
                    <asp:Image ID="GameTypeImage" runat="server" ImageUrl='<%# GetNivdalData.GetNivdalData.GetIconByMatchType(Eval("Type")) %>'
                     ToolTip='<%# GetNivdalData.GetNivdalData.GetToolTipByMatchType(Eval("Type")) %>' AlternateText='<%# GetNivdalData.GetNivdalData.GetToolTipByMatchType(Eval("Type")) %>' />
                </ItemTemplate>        
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="28%" HeaderText="<%$ Resources:Resource, Global_Match %>">
                <ItemTemplate>
                    <asp:HyperLink ID="MatchHyperlink" runat="server" Text='<%# Eval("MatchTitle") %>' SkinID="BlackHyperLinkSkin"
                     NavigateUrl='<%# Eval("MatchId", "~/MatchPage.aspx?MatchId={0}") %>'></asp:HyperLink>
                </ItemTemplate>            
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="15%" HeaderText="<%$ Resources:Resource, Global_Position %>" >
                <ItemTemplate>
                    <asp:Label ID="PositionLabel" runat="server" Text='<%# Eval("Position") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="6%" >
                <HeaderTemplate>
                    <asp:Label ID="RatingTitleLabel" runat="server" Text="<%$ Resources:Resource, Player_RatingTitleLabel %>" ToolTip="<%$ Resources:Resource, Player_RatingTitleToolTip %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="RatingLabel" runat="server" Text='<%# Eval("Rating") %>' SkinID="GridLabel"></asp:Label>
                </ItemTemplate>            
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="10%" HeaderText="<%$ Resources:Resource, Player_EventsHeaderText %>" >
                <ItemTemplate>
                    <asp:Image ID="GoalsImage" runat="server" ImageUrl="~/Images/Icons/LeagueIcon.png" ToolTip="<%$ Resources:Resource, Global_GoalsScored %>" />
                    <asp:Label ID="GoalsNumberLabel" runat="server" Text='<%# Eval("GoalsScored", "x{0}") %>' SkinID="GridLabel"></asp:Label>
                    <asp:Image ID="YellowCard1Image" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg" Visible='<%# Eval("YellowCard1Visible") %>' />
                    <asp:Image ID="YellowCard2Image" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg" Visible='<%# Eval("YellowCard2Visible") %>'/>
                    <asp:Image ID="RedImage" runat="server" ImageUrl="~/Images/Icons/players_red.jpg" Visible='<%# Eval("RedCardVisible") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="5%">
                <HeaderTemplate>
                    <asp:Label ID="MinutesPlayedHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_Minutes %>" ToolTip="<%$ Resources:Resource, Global_MinutesPlayed %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="MinutesPlayed" runat="server" Text='<%# Eval("MinutesPlayed")%>'
                     SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="5%">
                <HeaderTemplate>
                    <asp:Label ID="ShortPassesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_ShortPassingHeader %>" ToolTip="<%$ Resources:Resource, Player_ShortPassesHeaderToolTip%>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="ShortPassesLabel" runat="server" Text='<%# Eval("ShortPassesGood") + "/" + Eval("ShortPasses") %>'
                     SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="5%">
                <HeaderTemplate>
                    <asp:Label ID="LongPassesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_LongPassingHeader %>" ToolTip="<%$ Resources:Resource, Global_LongPasses %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="LongPassesLabel" runat="server" Text='<%# Eval("LongPassesGood") + "/" + Eval("LongPasses") %>'
                     SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>       
            <asp:TemplateField ItemStyle-Width="5%">
                <HeaderTemplate>
                    <asp:Label ID="DribblesHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_DribblesHeader %>" ToolTip="<%$ Resources:Resource, Global_Dribbles %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="DribblesLabel" runat="server" Text='<%# Eval("DribblesGood") + "/" + Eval("Dribbles") %>'
                     SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="5%">
                <HeaderTemplate>
                    <asp:Label ID="ShotsHeaderLabel" runat="server" Text="<%$ Resources:Resource, Player_ShotsHeaderLabel %>" ToolTip="<%$ Resources:Resource, Player_ShotsHeaderToolTip %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="ShotsLabel" runat="server" Text='<%# Eval("ShotsGood") + "/" + Eval("Shots") %>'
                     SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>  
            <asp:TemplateField ItemStyle-Width="5%">
                <HeaderTemplate>
                    <asp:Label ID="HeadersHeaderLabel" runat="server" Text="<%$ Resources:Resource, Player_HeadersHeaderLabel %>" ToolTip="<%$ Resources:Resource, Global_Headers %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="HeadersLabel" runat="server" Text='<%# Eval("HeadersGood") + "/" + Eval("Headers") %>'
                     SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>                    
         </Columns>
         <EmptyDataTemplate>
             <asp:Label ID="NoMatchesLabel" runat="server" Text="<%$ Resources:Resource, Player_NoMatchesLabel %>" SkinID="GridLabel"></asp:Label>
         </EmptyDataTemplate>
     
     
        </asp:GridView>
    
    </div>
    </div>
    <asp:SqlDataSource ID="PlayerMatchesDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
     SelectCommand="Nivdal_GetPlayerAppearances" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    <asp:SqlDataSource ID="ShirtsDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
      SelectCommand="Nivdal_ShowAvailableShirtNumbers" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="NTShirtsDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
      SelectCommand="Nivdal_ShowAvailableNTShirtNumbers" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="TransfersDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="Nivdal_GetPlayerTransfers" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
</asp:Content>
